﻿<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/practices/2013/entlib/semanticlogging/etw">
  <sinks>
    <flatFileSink fileName="ErrorsWhenInvalidKeyValueInConfiguration.log" name="ErrorFlatFileEventListener">
      <sources>
        <eventSource name="Microsoft-SemanticLogging" level="LogAlways" />
      </sources>
      <jsonEventTextFormatter/>
    </flatFileSink>
    <flatFileSink  fileName="WhenInvalidKeyValueInConfiguration.log" name="FlatFileEventListener">
      <sources>
        <eventSource name="SamplingEventSource" level="LogAlways">
          <arguments>
            <add key="ActivitySampling" value="true"/>
          </arguments>
        </eventSource>
        <eventSource name="TriggerEventSource" level="LogAlways">
          <arguments>
            <add key="ActivitySamplingStartEvent" value="TriggerEvent:asdf"/>
          </arguments>
          <filter>
            <process name="vstest.executionengine.x86.exe"/>
          </filter>
        </eventSource>
      </sources>
      <jsonEventTextFormatter/>
    </flatFileSink>
  </sinks>
</configuration>
